<?php /* Smarty version Smarty-3.1.16, created on 2017-05-10 20:31:20
         compiled from "E:\blog\App\Back\View\Category\edit.html" */ ?>
<?php /*%%SmartyHeaderCode:27652590c7260dd78d8-43226124%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '3a5e6f0af43bf9040d0313ce6592164e134eb703' => 
    array (
      0 => 'E:\\blog\\App\\Back\\View\\Category\\edit.html',
      1 => 1494419407,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '27652590c7260dd78d8-43226124',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.16',
  'unifunc' => 'content_590c7260e28787_09132620',
  'variables' => 
  array (
    'cate' => 0,
    'cateInfo' => 0,
    'row' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_590c7260e28787_09132620')) {function content_590c7260e28787_09132620($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('../Public/header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<div class="admin">
  <div class="tab">
    <div class="tab-head"> <strong>分类管理</strong>
      <ul class="tab-nav">
        <li class="active"><a href="#tab-set">修改分类</a></li>
      </ul>
    </div>
    <div class="tab-body"> <br />
      <div class="tab-panel active" id="tab-set">
        <form method="post" class="form-x" action="index.php?p=Back&c=Category&a=dealEdit">
          <div class="form-group">
            <div class="label">
              <label for="sitename">分类名称</label>
            </div>
            <div class="field">
              <input type="text" value="<?php echo $_smarty_tpl->tpl_vars['cate']->value['cate_name'];?>
" class="input" id="name" name="cate_name" size="50" placeholder="分类名称" data-validate="required:请填写您的分类名称" />
            </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label for="sitename">所属类别</label>
            </div>
            <div class="field">
              <select class="select" name="cate_pid">
                  <option value="0">主类别</option>
                  <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['row']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['cateInfo']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value) {
$_smarty_tpl->tpl_vars['row']->_loop = true;
?>
                  <option value="<?php echo $_smarty_tpl->tpl_vars['row']->value['cate_id'];?>
"
                  <?php if ($_smarty_tpl->tpl_vars['row']->value['cate_id']==$_smarty_tpl->tpl_vars['cate']->value['cate_pid']) {?>selected="selected"<?php }?>><?php echo preg_replace('!^!m',str_repeat('-',($_smarty_tpl->tpl_vars['row']->value['level']*5)),$_smarty_tpl->tpl_vars['row']->value['cate_name']);?>

                  </option>
                  <?php } ?>
              </select>
            </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label for="readme">分类描述</label>
            </div>
            <div class="field">
              <textarea class="input" name="cate_desc" rows="5" cols="50" placeholder="请填写分类描述" data-validate="required:请填写分类描述"><?php echo $_smarty_tpl->tpl_vars['cate']->value['cate_desc'];?>
</textarea>
            </div>
          </div>
          <div class="form-group">
            <div class="label">
              <label for="siteurl">排序</label>
            </div>
            <div class="field">
              <input type="text" class="input" id="sort" name="cate_sort" size="50" placeholder="请填写排序编号" data-validate="required:请填写排序编号" value="<?php echo $_smarty_tpl->tpl_vars['cate']->value['cate_sort'];?>
" />
            </div>
          </div>
          <div class="form-button">
            <input type="hidden" name='cate_id' value="<?php echo $_smarty_tpl->tpl_vars['cate']->value['cate_id'];?>
">   
            <button class="button bg-main" type="submit" onclick="return confirm('确认要提交修改内容?')";>提交</button>
          </div>
        </form>
      </div>
    </div>
  </div>
  <div style='height:20px; border-bottom:1px #DDD solid'></div>
  <p class="text-right text-gray" style="float:right">基于<a class="text-gray" target="_blank" href="#">MVC框架</a>构建</p>
</div>
</body>
</html><?php }} ?>
